package com.ninthgroup.service.Impl;


import com.ninthgroup.entity.Kind;
import com.ninthgroup.mapper.KindMapper;
import com.ninthgroup.service.KindService;
import com.ninthgroup.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Student王心
 * @date ：Created in 2022/10/14 20:01
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class KindServiceImpl implements KindService {
    @Autowired
    private KindMapper kindMapper;


    /**
     * 查询所有的新闻类别
     * @return
     */
    @Override
    public Result findAllKind() {
        List<Kind> kinds = kindMapper.selectAllKind();
        return new Result(200,"查询新闻类别信息成功",kinds);
   }
}